<?php

class ctrl_firadio_php_admin_default extends ctrl_firadio_php_admin_common {

    public function action_index() {
        $menu = new model_firadio_php_sys_menu();
        $this->tables['menutree'] = $menu->getTree();
        return($this->getdata());
    }

    public function action_dwzfragxml() {
        
    }

    public function action_make() {
        $menu = new model_firadio_php_sys_menu();
        $items = $menu->getItems('makephpcode');
        $menu->makectrl($items);
        $menu->makeview($items, 'dwz');
        exit;
    }

    public function action_makeconfig() {
        $config = new model_firadio_php_sys_config();
        $config->outconfigfile($config->getlist());
        exit;
    }

}